package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author cfr
 * @date 2022/1/9
 * @TIME:19:16
 */
@Data
@TableName("bs_user")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    //主键用户id
    private Long id;

    //头像
    private String avatar;

    //创建时间
    private Date createTime;

    //邮箱
    private String email;

    //介绍
    private String introduction;

    //最后修改时间
    @TableField("last_update_time")
    private Date lastUpdateTime;

    //密码
    private String password;

    //手机号码
    private String phone;

    //账号状态 0为启用，1为禁用
    private Integer status;

    //用户名称
    private String username;

    //性别
    private String sex;

    //角色
    private String role;

    //权限组ID
    @TableField("permission_group_id")
    private  Long permissionGroupId;
}
